package br.usp.poli.dao;

import java.util.List;

import org.hibernate.Session;

import br.usp.poli.entity.DataSetMetadata;

public class DataSetMetadataDao {
	private GenericDao<DataSetMetadata, Long> dao;
	
	public DataSetMetadataDao(Session session){
		this.dao = GenericDao.getInstance(session,DataSetMetadata.class);
	}

	public void saveOrUpdate(DataSetMetadata t) {
		dao.saveOrUpdate(t);
	}

	public void delete(DataSetMetadata t) {
		dao.delete(t);
	}

	public List<DataSetMetadata> list() {
		return dao.list();
	}

	public DataSetMetadata load(Long id) {
		return dao.load(id);
	}

	public void merge(DataSetMetadata t) {
		dao.merge(t);
	}

	public void save(DataSetMetadata t) {
		dao.save(t);
	}
	
	
}
